<ion-view title="hotel-add-worker">
    <ion-content overflow-scroll="true" padding="true" scroll="false" class="has-header">
        <form class="list" ng-submit="submit()" novalidate>
            <ion-list>
                <label class="item item-input" name="hotelWorkerName">
                    <span class="input-label">姓名</span>
                    <input type="text" placeholder="必填"  ng-model="data.name" required bsy-form-validate="nameErrorTips">
                </label>
                <label class="item item-input" name="hotelWorkerUsedName">
                    <span class="input-label">曾用名</span>
                    <input type="text" placeholder="" required ng-model="data.usedName">
                </label>
                <label class="item item-select" name="hotelWorkerSex">
                    <span class="input-label">性别</span >
                    <select ng-model="data.sex">
                        <option value="1">男</option>
                      <option value="2">女</option>
                    </select>
                </label>
                <label class="item item-input" name="hotelWorkerID">
                    <span class="input-label">身份证号码</span>
                    <input type="text" placeholder="必填"  ng-model="data.idCardNo"  required bsy-form-validate="idCardNoErrorTips"
                           ng-maxlength="18"
                           ng-minlength="18">
                </label>
                <label class="item item-input" name="hotelWorkerPhone">
                    <span class="input-label">联系电话</span>
                    <input type="tel" placeholder="" ng-model="data.telephoneNum">
                </label>
                <label class="item item-input" name="hotelWorkerAddress">
                    <span class="input-label">现住址</span>
                    <input type="text" placeholder="必填" required ng-model="data.address"
                           bsy-form-validate="addressErrorTips"
                          ng-minlength="3"
                           maxlength="200"
                            >
                </label>
            </ion-list>
            <button class="button button-stable button-block" check-form>提交</button>
        </form>
    </ion-content>
</ion-view>
